﻿using System;

namespace AccelerateSensor.Console.Tools
{
    public static class DatetimeHelper
    {
        public static DateTime GetLocalTime(long timestamp)
        {
            var startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
            return startTime.AddSeconds(timestamp);
        }
    }
}
